<?php

use yii\helpers\Url;

$data_matrix = "https://proxcrm.xgate.com/barcode/frontend/web/index.php?r=qr/barcode&code=;" . $userInfo['card_number'] . "=991200188728783?&type=datamatrix";

$this->title = '会员中心';
?>

<div class="topContainer">
    <div class="weui-flex">
        <div class="weui-flex-item card" id="card">
            <img src="<?= Url::to('@web/member/img/card3.png', true) ?>" alt="barCard">
            <!-- <div  class="smallQR">
                <img src="<?= Url::to('@web/member/img/113436.png', true) ?>" alt="">
            </div> -->
            <span><?= isset($userInfo['last_name']) ? $userInfo['last_name'] : '' ?></span>
        </div>
    </div>
    <div class="weui_msg_img hide" id="barCard"  onclick="$('#barCard').fadeOut();">
        <div class="weui_msg_com">
        <img src="<?= Url::to('@web/member/img/logo.png' ,true)?>" alt="logo" id="logo">
            <div class="weui_msg_src" style="overflow:visible;">
                <img src="<?= $data_matrix ?>">
                <p><?= $userInfo['card_number'] ?></p>
                <p style="color:#d0d0d0;font-size:12px">请于收银时出示本会员卡</p>
                <!-- <p style="color:#48A37A;font-size:12px">点击任意位置返回会员中心</p> -->
            </div>
            <!-- <p class="weui_msg_comment">长按上方二维码3秒识别二维码</p> -->
        </div>
    </div>
    <div class="weui-flex">
        <div class="weui-flex-item">
            <div class="topBox">
                <div class="topBoxHead">
                    积分
                </div>
                <div class="topBoxBody">
                    <a href="#">0</a>
                    <!-- <a href="<?= Url::to(['member/points'])?>">0</a> -->
                </div>
            </div>
        </div>
        <div class="weui-flex-item ">
            <div class="topBox leftBorder">
                <div class="topBoxHead">
                    优惠券
                </div>
                <div class="topBoxBody">
                    <a href="<?= Url::to(['member/coupons'])?>">查看</a>
                </div>
            </div>
        </div>
    </div>
    <!-- <div class="wxPay">
        <a href="javascript:;" class="weui_btn">微信支付</a>
    </div> -->
</div>
<div class="weui_cells weui_cells_access">
    <a class="weui_cell " href="<?=Url::to(['member/usermsg'])?>">
        <div class="weui_cell_bd weui_cell_primary">
            <p>个人信息</p>
        </div>
        <div class="weui_cell_ft">
        </div>
    </a>
    <a class="weui_cell" href="<?=Url::to(['member/member_card_detail'])?>">
        <div class="weui_cell_bd weui_cell_primary">
            <p>会员卡详情</p>
        </div>
        <div class="weui_cell_ft">
        </div>
    </a>
    <!-- <a class="weui_cell" href="#">
        <div class="weui_cell_bd weui_cell_primary">
            <p>通用门店</p>
        </div>
        <div class="weui_cell_ft">
        </div>
    </a>
    <a class="weui_cell" href="#">
        <div class="weui_cell_bd weui_cell_primary">
            <p>公众号</p>
        </div>
        <div class="weui_cell_ft">
        </div>
    </a> -->
</div>
